<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class phlat</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class phlat</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
		<p class="notes">
			Located in <a class="field" href="_phlat.class.php.html">/phlat.class.php</a> (line <span class="field">23</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																																				
												<div class="method-definition">
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$tableName</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$tableFields</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$useGzip</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$gzipLevel</span> = <span class="var-default">9</span>], <span class="var-type">array</span>&nbsp;<span class="var-name">$tableFields[optional]</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">$useGzip[optional]</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$gzipLevel[optional]</span>)
									</div>
																<div class="method-definition">
										<a href="#add" title="details" class="method-name">add</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span>)
									</div>
																<div class="method-definition">
										<a href="#clear" title="details" class="method-name">clear</a>
										()
									</div>
																<div class="method-definition">
										<a href="#deleteAt" title="details" class="method-name">deleteAt</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
									</div>
																<div class="method-definition">
										<a href="#deleteRange" title="details" class="method-name">deleteRange</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$end</span> = <span class="var-default">null</span>])
									</div>
																<div class="method-definition">
										<a href="#deleteRangeAt" title="details" class="method-name">deleteRangeAt</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$end</span>)
									</div>
																<div class="method-definition">
										<a href="#editAt" title="details" class="method-name">editAt</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$editWith</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#error" title="details" class="method-name">error</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$message</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$die</span> = <span class="var-default">false</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#get" title="details" class="method-name">get</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#getSize" title="details" class="method-name">getSize</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getTableFields" title="details" class="method-name">getTableFields</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getTableName" title="details" class="method-name">getTableName</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#save" title="details" class="method-name">save</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#select" title="details" class="method-name">select</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$index</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#selectAt" title="details" class="method-name">selectAt</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#selectByAt" title="details" class="method-name">selectByAt</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$desc</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$start</span> = <span class="var-default">0</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$desc[optional]</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$limit[optional]</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$start[optional]</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#selectComplex" title="details" class="method-name">selectComplex</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$select</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$logic</span> = <span class="var-default">'AND'</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$logic[optional]</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#selectRange" title="details" class="method-name">selectRange</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$end</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$end[optional]</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#selectRangeAt" title="details" class="method-name">selectRangeAt</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$end</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$end[optional]</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#selectWhereAt" title="details" class="method-name">selectWhereAt</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$limit[optional]</span>)
									</div>
								</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">46</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Create or load a table / database</p>
<p class="description"><p>You must use the tableFields parameter only for creating, not loading (If you created a DB but did not add anything, also, use the parameter)</p></p>
	
	<div class="method-signature">
		<span class="method-result"></span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$tableName</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$tableFields</span> = <span class="var-default">null</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$useGzip</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$gzipLevel</span> = <span class="var-default">9</span>], <span class="var-type">array</span>&nbsp;<span class="var-name">$tableFields[optional]</span>, <span class="var-type">boolean</span>&nbsp;<span class="var-name">$useGzip[optional]</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$gzipLevel[optional]</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$tableName</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$tableFields[optional]</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$useGzip[optional]</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$gzipLevel[optional]</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$tableFields</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$useGzip</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$gzipLevel</span>			</li>
				</ul>
		
			
	</div>
<a name="methodadd" id="add"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">add</span> (line <span class="line-number">125</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Add data into the database</p>
<p class="description"><p>Adds an array to the data array, the array must be array(field=&gt;value); If you dont want to add a field you can leave it empty &quot;id&quot; field is ignored.</p></p>
	
	<div class="method-signature">
		<span class="method-result"></span>
		<span class="method-name">
			add
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span>			</li>
				</ul>
		
			
	</div>
<a name="methodclear" id="clear"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">clear</span> (line <span class="line-number">481</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Clear database</p>
<p class="description"><p>Deletes all data from the database, <strong>including fields</strong>.</p></p>
	
	<div class="method-signature">
		<span class="method-result"></span>
		<span class="method-name">
			clear
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methoddeleteAt" id="deleteAt"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteAt</span> (line <span class="line-number">397</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deletes data with a given field and value</p>
<p class="description"><p>For example delete entry with id = 10</p></p>
	
	<div class="method-signature">
		<span class="method-result"></span>
		<span class="method-name">
			deleteAt
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteRange" id="deleteRange"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">deleteRange</span> (line <span class="line-number">423</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deletes data whithin a range</p>
<p class="description"><p>Deletes a range of data from the data array using the array indexes, <strong>not the data ids</strong></p></p>
	
	<div class="method-signature">
		<span class="method-result"></span>
		<span class="method-name">
			deleteRange
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$end</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$start</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$end</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteRangeAt" id="deleteRangeAt"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">deleteRangeAt</span> (line <span class="line-number">456</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deletes data within a range</p>
<p class="description"><p>Delete a range of data using their ids It may take time if there are many entries, try using deleteRange if you can.  That will work only when you want to delete the last/first x entries thought.</p></p>
	
	<div class="method-signature">
		<span class="method-result"></span>
		<span class="method-name">
			deleteRangeAt
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$end</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$start</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$end</span>			</li>
				</ul>
		
			
	</div>
<a name="methodeditAt" id="editAt"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">editAt</span> (line <span class="line-number">363</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Edit data with a given field value</p>
<p class="description"><p><strong>Cannot modify the id field!</strong></p></p>
	
	<div class="method-signature">
		<span class="method-result"></span>
		<span class="method-name">
			editAt
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$editWith</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$editWith</span>			</li>
				</ul>
		
			
	</div>
<a name="methoderror" id="error"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">error</span> (line <span class="line-number">103</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			error
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$message</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$die</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$message</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$die</span>			</li>
				</ul>
		
			
	</div>
<a name="methodget" id="get"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">get</span> (line <span class="line-number">152</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get all data</p>
<p class="description"><p>Returns all data in an array</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> Complete data array</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			get
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetSize" id="getSize"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getSize</span> (line <span class="line-number">493</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get database size</p>
<p class="description"><p>Gets the number of entries in the &quot;table&quot;</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An integer representing the number of entries in the data array</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getSize
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetTableFields" id="getTableFields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getTableFields</span> (line <span class="line-number">503</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets table fields</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing the names of the fields</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getTableFields
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetTableName" id="getTableName"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getTableName</span> (line <span class="line-number">513</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Gets the table name</p>
	<ul class="tags">
				<li><span class="field">return:</span> A string containing the name of the current table</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getTableName
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodsave" id="save"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">save</span> (line <span class="line-number">89</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			save
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodselect" id="select"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">select</span> (line <span class="line-number">164</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Selects data from the dynamic index</p>
<p class="description"><p>Selects data using the dynamic index, faster</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing selected data</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			select
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$index</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$index</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectAt" id="selectAt"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">selectAt</span> (line <span class="line-number">231</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Select a single element</p>
<p class="description"><p>Select data by field value, for example, by id Not recommended if you want to select the latest 10 or first 10 Use bulkSelect instead.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing selected data</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			selectAt
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectByAt" id="selectByAt"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">selectByAt</span> (line <span class="line-number">284</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Select by field, ordered desc or asc</p>
<p class="description"><p>Select data by field name, and order it descendant or ascendant Can specify a limit to return from 0 to that limit And also an start to return frm start to limit</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing selected fields ordered</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			selectByAt
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$desc</span> = <span class="var-default">false</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$start</span> = <span class="var-default">0</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$desc[optional]</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$limit[optional]</span>, <span class="var-type">integer</span>&nbsp;<span class="var-name">$start[optional]</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$desc[optional]</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$limit[optional]</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$start[optional]</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$desc</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$limit</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$start</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectComplex" id="selectComplex"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">selectComplex</span> (line <span class="line-number">328</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Select data using logic</p>
<p class="description"><p>For example, &quot;select data where user=fedekun AND email=test@test.com&quot;  For that to work, $select must be array('user'=&gt;'fedekun', 'email'=&gt;'test@test.com')   and $logic can be empty or 'AND'. If its empty, the default value is AND. Valid values are AND and OR.  Other values are ignored and treated as AND.<br /> This is not very fast as it loops through all items in the data array, avoid if you can.</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing selected data</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			selectComplex
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$select</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$logic</span> = <span class="var-default">'AND'</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$logic[optional]</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$select</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$logic[optional]</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$logic</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectRange" id="selectRange"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">selectRange</span> (line <span class="line-number">177</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Select data whithin a range</p>
<p class="description"><p>Select data using the data array indexes, faster</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing selected data</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			selectRange
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$end</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$end[optional]</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$start</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$end[optional]</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$end</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectRangeAt" id="selectRangeAt"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">selectRangeAt</span> (line <span class="line-number">202</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Select data within a range</p>
<p class="description"><p>Select data using the internal id, order ascendant</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing selected data</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			selectRangeAt
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$start</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$end</span> = <span class="var-default">false</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$end[optional]</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$start</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$end[optional]</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$end</span>			</li>
				</ul>
		
			
	</div>
<a name="methodselectWhereAt" id="selectWhereAt"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">selectWhereAt</span> (line <span class="line-number">250</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Select all entries where field = value</p>
<p class="description"><p>Selects all entries where field = value, for example, reply_id = 1</p></p>
	<ul class="tags">
				<li><span class="field">return:</span> An array containing selected entries</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			selectWhereAt
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$field</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$value</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$limit</span> = <span class="var-default">0</span>], <span class="var-type">integer</span>&nbsp;<span class="var-name">$limit[optional]</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$value</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$limit[optional]</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$limit</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Wed, 01 Jul 2009 20:38:11 -0300 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>